package wangxiaotao.service;

import org.springframework.web.multipart.MultipartFile;
import wangxiaotao.bean.vo.RoomVO;
import wangxiaotao.entity.Room;
import com.baomidou.mybatisplus.extension.service.IService;
import wangxiaotao.enums.OrderStatue;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wang
 * @since 2022-03-22
 */
public interface RoomService extends IService<Room> {

    /**
     * 订单状态变化 修改房间状态
     * @param orderStatue
     */
    void changeRoomStatueByOrderStatue(Integer orderId,OrderStatue orderStatue,String orderRoomNo);

    /**
     * 添加房间数据
     * @param fileList
     * @param roomVO
     */
    void addRoom(MultipartFile[] fileList, RoomVO roomVO,String roomType);

    List<Map<String, Object>> getRoomRemain();

    List<Map<String, Object>> getRemainRoom();

    void judgeRoomStatue(RoomVO roomVO);
}
